<html>
	<head>
		<title><?php echo CHtml::encode($this->pageTitle); ?></title>
		<LINK HREF="<?php echo Yii::app()->request->baseUrl; ?>/stylesheet.css" REL="stylesheet" TYPE="text/css">
		<LINK ?  HREF="<?php echo Yii::app()->request->baseUrl; ?>/form.css" REL="stylesheet" type="text/css">
	</head>
	<body>
		<div id="header-wrap">
			<div id="header"> 
      			<div id="header-banner">
      				<ul>
		            <?php if (Yii::app()->user->isGuest): ?>
						<li>
				            <?php echo CHtml::link('Login', array('/site/login')); ?>
						</li>
                      <?php elseif (Yii::app()->user->checkAccess('member')): ?>
                      <li>
                      <?php echo CHtml::link('Home', array('/site/index')); ?>
                      </li>
                      <div id="header-div"></div>
                      <li>
                      <?php echo CHtml::link('PNMs', array('/pnm/index')); ?>
                      </li>
                      <div id="header-div"></div>
                      <li>
                      <?php echo CHtml::link('Events', array('/events/index')); ?>
                      </li>
                      <?php if (Yii::app()->user->checkAccess('admin')):?>
                      <div id="header-div"></div>
                      <li>
                      <?php echo CHtml::link('Admin', array('/admin/index')); ?>
                      </li>
                      <?php endif; ?>
                          <?php if (Yii::app()->user->checkAccess('member')):?>
                      <div id="header-div"></div>
                      <li>
                      <?php echo CHtml::link('Account', array('/myaccount/index')); ?>
                      </li>
                      <?php endif; ?>
                      <div id="header-div"></div>
                      <li>
                      <?php echo CHtml::link('Log Out', array('/site/logout')); ?>
                      </li>
                      <?php endif; ?>

  <div style="clear: both"></div>
        </ul>
        </div>
      </div>
  </div>

<div id="main-content-wrap">
  <?php echo $content; ?>
  </div>

  <div id="footer-wrap">
 <div id="footer">
      <div id="footer-divder">
        <!--  I am the footer -->
        </div>
  
  </div>
  </div>
</body>
</html>